package com.zjgsu.nftplatform.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author ahy231
 * @date 2022/3/5 12:14
 * @description
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@ApiModel("订单信息")
public class DealInfo {
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("微信订单id")
    private String orderId;
    @ApiModelProperty("作品名称")
    private String name;
    @ApiModelProperty("作品封面")
    private String cover;
    @ApiModelProperty("卖家id")
    private Long sellerId;
    @ApiModelProperty("卖家名称")
    private String sellerName;
    @ApiModelProperty("买家id")
    private Long buyerId;
    @ApiModelProperty("买家名称")
    private String buyerName;
    @ApiModelProperty("细分类别")
    private String kind;
    @ApiModelProperty("交易成功时间")
    @JsonFormat(pattern = "yyyy-MM-dd HH-mm-ss")
    private Date endTime;
    @ApiModelProperty("交易形式：一口价/拍卖")
    private String type;
    @ApiModelProperty("权利：版权/所有权")
    private String right;
    @ApiModelProperty("交易金额")
    private BigDecimal price;
    @ApiModelProperty("综合得分")
    private Double comprehensiveScore;
    @ApiModelProperty("商品id")
    private Long wareId;
    @ApiModelProperty("交易哈希")
    private String hash;
    @ApiModelProperty("版本")
    private String edition;
}
